package com.ming.attendance.service;


import com.ming.attendance.model.AttendanceEventCreateModel;
import com.ming.attendance.po.AttendanceEvent;
import com.ming.attendance.po.ResponseBean;

import java.util.List;

public interface AttendanceEventService {
    // 创建打卡事件
    ResponseBean<String> createEvent(AttendanceEventCreateModel event);

    // 修改事件
    ResponseBean<Integer> updateEvent(AttendanceEvent event);

    // 首次将事件和opengid绑定
    ResponseBean<Integer> initEvent(AttendanceEvent event);
    // 获取事件
    ResponseBean<AttendanceEvent> getEvent(String eventid);

    // 获取openid 所有相关的event事件
    ResponseBean<List<AttendanceEvent>> getEventsByOpenid(String openid);

    // 删除事件
    ResponseBean<Integer> deleteEvent(AttendanceEvent event);
}
